/**
 * 
 */
package springbootstudy.hibernate.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import springbootstudy.hibernate.Person;

/**
 * @author Administrator
 *
 */
public interface PersonRepository extends CrudRepository<Person, Integer> {

	Person findByName(String name);

	@Query(" from Person where name=:name")
	Person findByName2(@Param("name")String name);

}
